var requestHeaderRequest = function() {
    console.log("hahaha");
    $.post({
        url: "http://localhost:8000/interceptor/rh",
        headers: {id: '1'},
        success : function(user) {
            if (user == null || user.id == null) {
                alert("failed.")
            }
            alert("id=" + user.id + ", username=" + user.username + ", note= " + user.password);
        }
    });
}

var manualRequest = function() {
    var params = {
        "age": 23,
        "password" : "123456",
        "username" : "hzsaiojkyk"
    }
    
    $.post({
        url: "http://localhost:8000/user/insertUserJson",
        contentType : "application/json",
        data : JSON.stringify(params),
        success : function(result, status) {
            alert(JSON.stringify(result))
            console.log(status)
        }
    });
}